package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class FailedRecordQueryObject extends QueryObject {
    //开发失败时间段
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date minDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date maxDate;


    //模糊搜索
    private String charger;//负责人的姓名
    private String client; //客户的姓名

    public String getCharger() {
        return StringUtil.empty2Null(charger);
    }

    public String getClient() {
        return StringUtil.empty2Null(client);
    }
}
